﻿<?xml version="1.0"?>
<Orchard>
    <Recipe>
        <Name>Default</Name>
        <Description>The default recipe for an Orchard site that includes pages, blogs, custom content types, comments, tags, widgets and basic navigation.</Description>
        <Author>The Orchard Team</Author>
        <WebSite>http://orchardproject.net</WebSite>
        <Category>Default</Category>
        <Tags></Tags>
        <Version>1.0</Version>
        <IsSetupRecipe>true</IsSetupRecipe>
    </Recipe>

    <Feature enable="Orchard.Blogs,Orchard.Comments,Orchard.Tags,Orchard.Alias,Orchard.Autoroute,
                   TinyMce,Orchard.MediaLibrary,Orchard.ContentPicker,Orchard.PublishLater,
                   Orchard.Resources,Orchard.Widgets,Orchard.ContentTypes,
                   Orchard.Scripting,Orchard.Scripting.Lightweight,PackagingServices,Orchard.Packaging,
                   Orchard.Projections,Orchard.Fields,Orchard.OutputCache,Orchard.Taxonomies,Orchard.Workflows,
                   Orchard.Layouts,Orchard.Layouts.Tokens,
                   TheThemeMachine" />

    <ContentDefinition>
        <Types>
            <Page ContentTypeSettings.Draftable="True" TypeIndexing.Indexes="Search">
                <TagsPart />
                <LocalizationPart />
                <TitlePart/>
                <AutoroutePart />
                <MenuPart />
            </Page>
            <BlogPost ContentTypeSettings.Draftable="True" TypeIndexing.Indexes="Search">
                <CommentsPart />
                <TagsPart />
                <LocalizationPart />
                <TitlePart/>
                <AutoroutePart />
            </BlogPost>
        </Types>
        <Parts>
            <BodyPart BodyPartSettings.FlavorDefault="html" />
        </Parts>
    </ContentDefinition>

    <Settings />

    <Migration features="*" />

    <Command>
        layer create Default /LayerRule:"true" /Description:"The widgets in this layer are displayed on all pages"
        layer create Authenticated /LayerRule:"authenticated" /Description:"The widgets in this layer are displayed when the user is authenticated"
        layer create Anonymous /LayerRule:"not authenticated" /Description:"The widgets in this layer are displayed when the user is anonymous"
        layer create Disabled /LayerRule:"false" /Description:"The widgets in this layer are never displayed"
        layer create TheHomepage /LayerRule:"url '~/'" /Description:"The widgets in this layer are displayed on the home page"
        site setting set baseurl
        menu create /MenuName:"Main Menu"
        page create /Slug:"welcome-to-orchard" /Title:"Welcome to Orchard!" /Path:"welcome-to-orchard" /Homepage:true /Publish:true /UseWelcomeText:true
        menuitem create /MenuPosition:"0" /MenuText:"Home" /Url:"~/" /MenuName:"Main Menu"
        widget create MenuWidget /Title:"Main Menu" /RenderTitle:false /Zone:"Navigation" /Position:"1" /Layer:"Default" /Identity:"MenuWidget1" /MenuName:"Main Menu"
        theme activate "The Theme Machine"
    </Command>
</Orchard>
